.class public Lcom/ocpsoft/pretty/time/units/TimeUnitComparator;
.super Ljava/lang/Object;
.source "TimeUnitComparator.java"

# interfaces
.implements Ljava/util/Comparator;
.implements Ljava/io/Serializable;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Comparator",
        "<",
        "Lcom/ocpsoft/pretty/time/TimeUnit;",
        ">;",
        "Ljava/io/Serializable;"
    }
.end annotation


# static fields
.field private static final serialVersionUID:J = 0x1L


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 33
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public compare(Lcom/ocpsoft/pretty/time/TimeUnit;Lcom/ocpsoft/pretty/time/TimeUnit;)I
    .locals 4
    .parameter "left"
    .parameter "right"

    .prologue
    .line 38
    invoke-interface {p1}, Lcom/ocpsoft/pretty/time/TimeUnit;->getMillisPerUnit()J

    move-result-wide v0

    invoke-interface {p2}, Lcom/ocpsoft/pretty/time/TimeUnit;->getMillisPerUnit()J

    move-result-wide v2

    cmp-long v0, v0, v2

    if-gez v0, :cond_0

    .line 39
    const/4 v0, 0x1

    .line 43
    :goto_0
    return v0

    .line 40
    :cond_0
    invoke-interface {p1}, Lcom/ocpsoft/pretty/time/TimeUnit;->getMillisPerUnit()J

    move-result-wide v0

    invoke-interface {p2}, Lcom/ocpsoft/pretty/time/TimeUnit;->getMillisPerUnit()J

    move-result-wide v2

    cmp-long v0, v0, v2

    if-lez v0, :cond_1

    .line 41
    const/4 v0, -0x1

    goto :goto_0

    .line 43
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 33
    check-cast p1, Lcom/ocpsoft/pretty/time/TimeUnit;

    .end local p1
    check-cast p2, Lcom/ocpsoft/pretty/time/TimeUnit;

    .end local p2
    invoke-virtual {p0, p1, p2}, Lcom/ocpsoft/pretty/time/units/TimeUnitComparator;->compare(Lcom/ocpsoft/pretty/time/TimeUnit;Lcom/ocpsoft/pretty/time/TimeUnit;)I

    move-result v0

    return v0
.end method
